import Vue from 'vue'
import Router from 'vue-router'
import Login from "../views/Login";
import Bar from "../views/Bar";
import teacherList from "../views/TeacherList";
import TeacherRevise from "../views/TeacherRevise";
import TeacherPasswordRevise from "../views/TeacherPasswordRevise";
import StudentRevise from "../views/StudentRevise";
import CourseRevise from "../views/CourseRevise";
import ClassDetail from "../views/ClassDetail";
import TeacherAdd from "../views/TeacherAdd";
import StudentPasswordRevise from "../views/StudentPasswordRevise";
import StudentAdd from "../views/StudentAdd";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login,
      hidden: true
    },
    {
      path: '/',
      name: 'Bar',
      component: Bar,
      hidden: true
    },
    {
      path: '/TeacherRevise/:id',
      name: 'TeacherRevise',
      component: TeacherRevise,
      hidden: true
    },
    {
      path: '/TeacherPasswordRevise/:id',
      name: 'TeacherPasswordRevise',
      component: TeacherPasswordRevise,
      hidden: true
    },
    {
      path: '/StudentRevise/:id',
      name: 'StudentRevise',
      component: StudentRevise,
      hidden: true
    },
    {
      path: '/StudentPasswordRevise/:id',
      name: 'StudentPasswordRevise',
      component: StudentPasswordRevise,
      hidden: true
    },
    {
      path: '/CourseRevise/:id',
      name: 'CourseRevise',
      component: CourseRevise,
      hidden: true
    },
    {
      path: '/ClassDetail/:id',
      name: 'ClassDetail',
      component: ClassDetail,
      hidden: true
    },
    {
      path: '/TeacherAdd',
      name: 'TeacherAdd',
      component: TeacherAdd,
      hidden: true
    },
    {
      path: '/StudentAdd',
      name: 'StudentAdd',
      component: StudentAdd,
      hidden: true
    },
  ]
})
